PATH  Mac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Icon Services and Utilities
>
Obtaining and Using Icons With Icon Services

   

OverrideIconRefFromResource

Replaces the bitmaps in an IconRef with bitmaps from a specified resource file.

pascal OSErr OverrideIconRefFromResource(
                     IconRef iconRef,
                     FSSpec*resourceFile,
                     SInt16 resourceID);

iconRef
An pointer to a value of type IconRef to be updated.

resourceFile
A pointer to an FSSpec data structure identifying the resource file containing the replacement bitmaps. For more information on the FSSpec structure, see Inside Macintosh: Files.

resourceID
A value of type SInt16 specifying the resource ID containing the replacement bitmaps. This value must be non-zero. You should provide a resource of type 'icns' if possible. If an 'icns' resource is not available, Icon Services uses standard icon suite resources, such as 'ICN#' , instead.

function result
A result code. See Icon Services Result Codes for a description of possible return values.

© 1999 Apple Computer, Inc. – (Last Updated 03 Dec 99)